package com.tpc.jginterface.task;

import com.tpc.jginterface.service.PurOutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class PurOutTask {

    @Autowired
    private PurOutService purOutService;

    @Scheduled(cron = "${UPLOAD.PUROUT}")
    public void uploadPurOut(){
        purOutService.uploadPurOut();
    }
}
